package ${package};

import java.util.List;

import ${rootPkg}.dao.${daoClass};
import ${rootPkg}.entity.${entityClass};
import ${rootPkg}.service.${serviceClass};

import net.zdsoft.keel.util.Pagination;



@SuppressWarnings("unchecked")
public class ${serviceImplClass} implements ${serviceClass} {

	private ${daoClass} ${daoVar};

	public void add${entityClass}(${entityClass} ${entityVar})
			throws Exception {
		${daoVar}.add${entityClass}(${entityVar});
	}

	public boolean delete${entityClass}(String[] ${entityVar}Ids)
			throws Exception {
		return ${daoVar}.delete${entityClass}(${entityVar}Ids);
	}

	public ${entityClass} get${entityClass}(String ${entityVar}Id)
			throws Exception {
		return ${daoVar}.get${entityClass}(${entityVar}Id);
	}

	public List get${entityClass}List(String unitId, Pagination page)
			throws Exception {
		return ${daoVar}.get${entityClass}List(unitId, page);
	}

	public boolean update${entityClass}(${entityClass} ${entityVar})
			throws Exception {
		return ${daoVar}.update${entityClass}(${entityVar});
	}

    public void set${daoClass}(${daoClass} ${daoVar}) {
        this.${daoVar} = ${daoVar};
    }
}

